package com.happy.xiao.common.base;

public class BaseResponseInfo<T> {

    private int code = 0;
    private T data = null;
    private String msg = "success";


    public BaseResponseInfo() {
    }

    public BaseResponseInfo(String msg) {
        this.msg = msg;
    }

    public BaseResponseInfo(int code) {
        this.code = code;
    }

    public BaseResponseInfo(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BaseResponseInfo(T data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
